package com.itheima.io.fileoutputstream.demo03;

import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;

public class FileOutputStreamDemo03 {

    public static void main(String[] args) throws IOException {

        FileOutputStream fileOutputStream = new FileOutputStream("itheima-io-fileoutputstream\\a.text", true);
//        File file = new File("itheima-io-fileoutputstream\\a.text");
//        FileOutputStream fileOutputStream = new FileOutputStream(file, true);

        fileOutputStream.write("lanwangji".getBytes());

        fileOutputStream.close();

    }
}
